<template>
	<view class="info">
		info
        {{mydata}}
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:"",
                mydata:{}
			}
		},
		onLoad(options) {
           //console.log(options);
           this.id=options.id;
		},
        created () {
            this.getData();
        },
		methods: {
            getData(){
                this.$myRequest({
                    url:"/api/xiaomi/detail",
                    data:{
                        id:this.id
                    }
                }).then(res=>{
                    this.mydata=res;
                    console.log(res);
                }).catch(err=>{
                    console.log(err);
                })
            }
		}
	}
</script>

<style>
	
</style>